package com.jyw.business.ast.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jyw.business.ast.domain.AstConsumableRecord;
import com.jyw.business.ast.domain.vo.web.AstConsumableClaimReserveVo;
import org.apache.ibatis.annotations.Param;

/**
 * 资产-耗材-记录Mapper接口
 * 
 * @author system
 * @date 2023-10-24
 */
public interface AstConsumableRecordMapper extends BaseMapper<AstConsumableRecord>
{
    /**
     * 查询资产-耗材-记录
     * 
     * @param id 资产-耗材-记录主键
     * @return 资产-耗材-记录
     */
    public AstConsumableRecord selectAstConsumableRecordById(Long id);

    /**
     * 查询资产-耗材-记录列表
     * 
     * @param astConsumableRecord 资产-耗材-记录
     * @return 资产-耗材-记录集合
     */
    public List<AstConsumableRecord> selectAstConsumableRecordList(AstConsumableRecord astConsumableRecord);

    /**
     * 新增资产-耗材-记录
     * 
     * @param astConsumableRecord 资产-耗材-记录
     * @return 结果
     */
    public int insertAstConsumableRecord(AstConsumableRecord astConsumableRecord);

    /**
     * 修改资产-耗材-记录
     * 
     * @param astConsumableRecord 资产-耗材-记录
     * @return 结果
     */
    public int updateAstConsumableRecord(AstConsumableRecord astConsumableRecord);

    /**
     * 删除资产-耗材-记录
     * 
     * @param id 资产-耗材-记录主键
     * @return 结果
     */
    public int deleteAstConsumableRecordById(Long id);

    /**
     * 批量删除资产-耗材-记录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAstConsumableRecordByIds(Long[] ids);

    /**
     * 耗材申领-申领耗材信息
     * @param id
     * @return
     */
    List<AstConsumableClaimReserveVo> claimReserveRecord(@Param("data") Long id);
}
